using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Test
{
	public partial class Form1 : Form
	{
		Data data = new Data("root", 5, new Data("test1", 1, new Data("test1.1", 11), new Data("test1.2", 12)), new Data("test2", 2));

		public Form1()
		{
			InitializeComponent();
		}

		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);
			try
			{
				this.treeView.Node = data;
			}
			catch (Exception exc)
			{
				System.Diagnostics.Debug.WriteLine(exc);
				Console.WriteLine(exc);
			}
		}
	}
}